import request from '@/utils/request'

// 查询报警变更申请列表
export function listApplyChange(query) {
  return request({
    url: '/alarm/applyChange/list',
    method: 'get',
    params: query
  })
}

// 查询报警变更申请详细
export function getApplyChange(id) {
  return request({
    url: '/alarm/applyChange/' + id,
    method: 'get'
  })
}

// 新增报警变更申请
export function addApplyChange(data) {
  return request({
    url: '/alarm/applyChange',
    method: 'post',
    data: data
  })
}

// 修改报警变更申请
export function updateApplyChange(data) {
  return request({
    url: '/alarm/applyChange',
    method: 'put',
    data: data
  })
}

// 删除报警变更申请
export function delApplyChange(id) {
  return request({
    url: '/alarm/applyChange/' + id,
    method: 'delete'
  })
}
